<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/3/17 0017
 * Time: 18:45
 */

namespace app\common\validate;

use think\Validate;

class Cate extends Validate
{
    protected $rule = [
        'catename|栏目名称' => 'require|unique:cate'
    ];

    public function sceneAdd()
    {
        return $this->only(['catename']);
    }

    public function sceneEdit()
    {
        return $this->only(['catename']);
    }
}